package com.along.game.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.along.framework.dao.base.IBaseDao;
import com.along.game.dao.SysMenuDAO;
import com.along.game.model.SysMenu;

/*
 * 菜单管理DAO实现类
 */
@Repository("sysMenuDAO")
public class SysMenuDAOImpl  implements SysMenuDAO{
	
	@Resource(name="baseDao")
	private IBaseDao<SysMenu,Long> dao;
	
	/**
	 * @param userId 登录用户ID
	 * @return 用户的权限菜单列
	 * @author lzb
	 * @since 2011-08-27
	 */
	public List getSysMenuByUser(String userId){
		String sql = "select * from sys_menu";
		List list = dao.jdbc().list(sql, SysMenu.class);
	    return list;
		
	}

}
